<?php
/**
 * 问卷题目选项Model
 */
class QuestionnaireOptionModel extends BaseModel{
	protected $tableName = 'app_questionnaire_option';
	
	protected $_auto = array(
			array('create_time', 'time', 1, 'function'),
			array('update_time', 'time', 2, 'function'),
	);
	
	/**
	 * 删除选项
	 */
	public function drop($titleId){
		if($titleId){
			$res = $this->where(array('title_id' => $titleId))->delete();
		}
		return $res;
	}
}